public class Main {

        public static void main(String[] args) {
        // 创建充电站和汽车
        IChargingStation chargingStation = new Supercharger();
        IElectricCar tesla = new TeslaModelS();
        IGasolineCar bmw = new BMW320i();

        // 直接为电动汽车充电
        chargingStation.charge(tesla);

        // 使用适配器为汽油车“充电”
        chargingStation.charge(new GasolineCarAdapter(bmw));
    }
    }
